<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS权重练习1</title>
    <style>
        /* 继承的权重为0 */
        .nav {
            color: red;
        }

        li {
            color: pink;
        }
    </style>
</head>

<body>
    <ul class="nav">
        <li>悯农</li>
        <li>锄禾日当午</li>
        <li>汗滴禾下土</li>
        <li>谁知盘中餐</li>
        <li>粒粒皆辛苦</li>
    </ul>
</body>

</html>